/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 * No deletion without permission, or be held responsible to law.
 * @author YDZ
 */
import { defHttp } from '/@/utils/http/axios';
import { useGlobSetting } from '/@/hooks/setting';
import { BasicModel, Page } from '../model/baseModel';

const { adminPath } = useGlobSetting();

export interface PmProjectadjudicationcut extends BasicModel<PmProjectadjudicationcut> {
  createDate?: string; // 申请时间
  name?: string; // 裁断名称
  oldid?: string; // 选中的工程编号
  childid?: string; // 生成新项目的ID
  reasondetail?: string; // 裁断原因
  promoter?: string; // 发起人
  ischeck?: number; // 是否审核
  fileid?: string; // fileid
}

export const pmProjectadjudicationcutList = (params?: PmProjectadjudicationcut | any) =>
  defHttp.get<PmProjectadjudicationcut>({ url: adminPath + '/process/cut/pmProjectadjudicationcut/list', params });

export const pmProjectadjudicationcutListData = (params?: PmProjectadjudicationcut | any) =>
  defHttp.post<Page<PmProjectadjudicationcut>>({ url: adminPath + '/process/cut/pmProjectadjudicationcut/listData', params });

export const pmProjectadjudicationcutForm = (params?: PmProjectadjudicationcut | any) =>
  defHttp.get<PmProjectadjudicationcut>({ url: adminPath + '/process/cut/pmProjectadjudicationcut/form', params });

export const pmProjectadjudicationcutSave = (params?: any, data?: PmProjectadjudicationcut | any) =>
  defHttp.postJson<PmProjectadjudicationcut>({ url: adminPath + '/process/cut/pmProjectadjudicationcut/save', params, data });

export const pmProjectadjudicationcutDelete = (params?: PmProjectadjudicationcut | any) =>
  defHttp.get<PmProjectadjudicationcut>({ url: adminPath + '/process/cut/pmProjectadjudicationcut/delete', params });
